package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.Parents;
import org.hxyjs.entity.Salesagent;
import org.hxyjs.entity.SalesagentExample;

public interface SalesagentMapper {
    long countByExample(SalesagentExample example);

    int deleteByExample(SalesagentExample example);

    int deleteByPrimaryKey(String sano);

    int insert(Salesagent record);

    int insertSelective(Salesagent record);

    List<Salesagent> getSalesagentByPage(Map map);

    String getMaxSano();

    Salesagent getAccountByAccountName(String saname);

    List<Salesagent> selectByExample(SalesagentExample example);

    Salesagent selectByPrimaryKey(String sano);

    int updateByExampleSelective(@Param("record") Salesagent record, @Param("example") SalesagentExample example);

    int updateByExample(@Param("record") Salesagent record, @Param("example") SalesagentExample example);

    int updateByPrimaryKeySelective(Salesagent record);

    int updateByPrimaryKey(Salesagent record);
}